#pragma once

#include <windows.h>
#include <gl\gl.h>
#include <gl\glu.h>

#include "IResources.h"
#include "IAutoLoadResources.h"
#include "Animation.h"

#include <string>
#include <map>

class AnimationManager : public IResources<Animation*>, public IAutoLoadResources
{
private:
	std::map<std::string, Animation*> animations;

public:
	AnimationManager(void);
	~AnimationManager(void);

	void Load(const char *path, const char *ext);
	void Add(const char *name, Animation *res);
	Animation * Get(const char *name);

	int GetCount();
	void Get(int i, char *name, Animation *&res);
};
